package basic;

public class DbConfig {
    private String username;
    private String password;
    private int id;

    private String url;

    public DbConfig() {
        this("root","123",1);
    }

    public DbConfig(String username, int id) {
        this(username, "123", id);
    }

    public DbConfig(String username, String password) {
        this(username, password, 2);
    }




    public DbConfig(String username, String password, int id) {
        this.username = username;
        this.password = password;
        this.id = id;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "DbConfig{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", id=" + id +
                ", url='" + url + '\'' +
                '}';
    }
}
